package com.xx.happychatboot.serve.room.service;

import com.xx.happychatboot.serve.room.domain.entity.RoomFriend;
import io.mybatis.service.BaseService;

/**
 * <p>
 * 单聊房间表 服务类
 * </p>
 *
 * @author xiaoXuan
 * @since 2025-01-02
 */
public interface IRoomFriendService extends BaseService<RoomFriend, Long> {
    /**
     * 通过房间key获取房间
     * @param key
     * @return
     */
    RoomFriend getRoomByRoomKey(String key);

    /**
     * 恢复房间
     * @param roomFriend
     */
    void restoreRoomIfNeed(RoomFriend roomFriend);

    /**
     * 创建好友房间信息
     * @param id
     * @param uid
     * @param targetId
     */
    RoomFriend createFriendRoom(Long id, Long uid, Long targetId);
}
